package client;


import java.io.Serializable;


/**
 * 封装客户端和服务端通信信息，信息格式化
 */
public class InvokerBean implements Serializable {
    private String serviceName;

    private RPCMethod methond;

    private Object[] parameters;

    private Object result;

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public Object[] getParameters() {
        return parameters;
    }

    public void setParameters(Object[] parameters) {
        this.parameters = parameters;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public RPCMethod getMethod() {
        return methond;
    }

    public void setMethod(RPCMethod methond) {
        this.methond = methond;
    }

    public InvokerBean(String serviceName, RPCMethod methond, Object[] parameters) {
        super();
        this.serviceName = serviceName;
        this.methond = methond;
        this.parameters = parameters;
    }

    public InvokerBean() {}
}
